home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 608 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.0 KB

  1. Path: chronicle.mti.sgi.com!austern
  2. From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
  3. Newsgroups: gnu.g++.help,comp.lang.c++,comp.std.c++
  4. Subject: Re: double& rd2 = 2.0; // error?
  5. Date: 01 Mar 1996 09:02:33 PST
  6. Organization: Comp Sci, University of Melbourne
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <4h76s1$79n@mulga.cs.mu.OZ.AU>
  9. References: <3135D175.87E@cteq07.pa.msu.edu>
  10. NNTP-Posting-Host: isolde.mti.sgi.com
  11. X-Original-Date: 1 Mar 1996 15:58:57 GMT
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBVAwUBMTctu0y4NqrwXLNJAQHYygIAjqMAxtmhE3jIVbqp15JeKL/u+F8UxrBe
  14.     1mbZcCO6J9wQr0+w9DXSWo9xt5YxsnTKGbl3SsVC5LO3kMpd8CCOCw==
  15.     =AMTH
  16. Originator: austern@isolde.mti.sgi.com
  17.  
  18. David Bowser-Chao <davechao@cteq07.pa.msu.edu> writes:
  19.  
  20. >Looking at the April 1995 working draft proposal,
  21. >the fragment:
  22. >
  23. >   double& rd2 = 2.0; 
  24. >
  25. >is deemed illegal (non-const references are not initialized from 
  26. >temporaries)
  27.  
  28. The draft standard does not use the term "illegal".
  29. It uses the term "ill-formed".
  30.  
  31. >but the GNU g++ 2.7.2 as well as the DEC VMS compiler 
  32. >(current release, don't remember, as well as the version I'm 
  33. >field-testing) allow this statement with a mere warning.
  34.  
  35. According to the draft standard, compilers are not required
  36. to issue errors for ill-formed code; they are allowed to issue
  37. mere warnings.
  38.  
  39. --
  40. Any mail to me between Feb 24th and 27th may have gone to the bit bucket
  41. (#&$^@$!# mail software silently ignored disk full error).  Please resend.
  42. (comp.std.c++ articles were not affected, so no need to resend those.)
  43. Fergus Henderson                 WWW: http://www.cs.mu.oz.au/~fjh
  44. fjh@cs.mu.oz.au                  PGP: finger fjh@128.250.37.3
  45. ---
  46. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
  47.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  48.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  49.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  50.   Comments? mailto:std-c++-request@ncar.ucar.edu 
  51. ]
  52.